import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

/**
 * @ClassName Demo05_BufferedReader
 * @Description 字符缓冲输入流
 * @Author Li
 * @Date 2022/8/12 9:36
 * @ModifyDate 2022/8/12 9:36
 * @Version 1.0
 */
public class Demo05_BufferedReader {
    public static void main(String[] args) throws IOException {
        // 创建流
        BufferedReader br = new BufferedReader(new FileReader("src/part10/ch01_BufferedStream/a.txt"));
        // 读一行数据
        String line = br.readLine();
        // 关闭流
        br.close();
        System.out.println(line);
    }
}
